package com.boxuegu.guanweihua25.boxuegudatabinding.apis;

import com.boxuegu.guanweihua25.boxuegudatabinding.model.LoginModel;
import com.boxuegu.guanweihua25.boxuegudatabinding.model.RegisterModel;

import retrofit2.Call;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface Apis {
    @Headers("Content-Type:application/x-www-form-urlencoded")
    @POST("login")
    Call<LoginModel> getLogin(@Query("username")String name, @Query("password")String pwd);
    @Headers("Content-Type:application/x-www-form-urlencoded")
    @POST("register")
    Call<RegisterModel> getRegister(@Query("username")String name, @Query("password")String pwd,@Query("repassword")String repwd);
}
